package com.example.yskjproject.model;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

import com.google.gson.annotations.SerializedName;

public class UserBindInfo implements Parcelable {
    @SerializedName("wx_openid")
    private String wxOpenid;
    @SerializedName("wx_nickname")
    private String wxNickName;

    protected UserBindInfo(Parcel in) {
        wxOpenid = in.readString();
        wxNickName = in.readString();
    }

    public static final Creator<UserBindInfo> CREATOR = new Creator<UserBindInfo>() {
        @Override
        public UserBindInfo createFromParcel(Parcel in) {
            return new UserBindInfo(in);
        }

        @Override
        public UserBindInfo[] newArray(int size) {
            return new UserBindInfo[size];
        }
    };

    public String getWxOpenid() {
        return wxOpenid;
    }
    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public String getWxNickName() {
        return wxNickName;
    }
    public void setWxNickName(String wxNickName) {
        this.wxNickName = wxNickName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel dest, int flags) {
        dest.writeString(wxOpenid);
        dest.writeString(wxNickName);
    }
}
